package cn.juque.jdfsystem.vo.registerinfo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>注册信息</li>
 * </ul>
 * @date 2023-01-10 19:01:26
 **/
@Data
public class RegisterInfoAddVO implements Serializable {

    /**
     * 工作空间
     */
    @NotEmpty(message = "工作空间不能为空")
    @Size(message = "工作空间不能超过{max}个字符", max = 100)
    private String workspaceId;

    /**
     * 节点名称
     */
    @NotEmpty(message = "节点名称不能为空")
    @Size(message = "节点名称不能超过{max}个字符", max = 32)
    private String nodeName;

    /**
     * 绑定的IP
     */
    @NotEmpty(message = "绑定的IP不能为空")
    @Size(message = "绑定的IP不能超过{max}个字符", max = 32)
    private String ip;
}
